package session.stateless.CRM;

import entity.CRM.LineItem;
import entity.CRM.SaleOrder;
import java.util.List;
import javax.ejb.Local;

@Local
public interface SaleOrderBeanLocal {
    public Long convertToSaleOrder(String reg_num, Long saleQuotationId, List<LineItem> lineItems) ;
    
    public List<SaleOrder> getSaleOrders();
    public List<SaleOrder> getSaleOrdersByCustomer(String reg_num);
    
    public void updateSaleOrder(Long SaleOrderId, List<LineItem> lineItems);
    public void deleteSaleOrder(Long saleOrderId);
    
    public SaleOrder findSaleOrder(Long saleOrderId);
    
    public boolean havingCashInAdvance(Long saleOrderId);
}
